package com.data.modules.sm.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.data.common.util.IPUtils;
import com.data.common.util.SpringContextUtils;
import com.data.modules.sm.entity.SmUserApp;
import com.data.modules.sm.mapper.SmUserAppMapper;
import com.data.modules.sm.service.ISmUserAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description: sm_user_app
 * @Author: data-boot
 * @Date:   2022-11-11
 * @Version: V1.0
 */
@Service
public class SmUserAppServiceImpl extends ServiceImpl<SmUserAppMapper, SmUserApp> implements ISmUserAppService {

    @Autowired
    private SmUserAppMapper mapper;
    /**
     * 查询app 使用情况
     * @param province
     * @return
     */
    @Override
    public Map getAppUseInfo(String province) {

        return mapper.getAppUseInfo(province);
    }

    @Override
    public Map checkAuthIp() {

       /* //获取request
        HttpServletRequest request = SpringContextUtils.getHttpServletRequest();
        //设置IP地址
        IPUtils.getIpAddr(request);*/
        return null;
    }
}
